package sample.test.cc.simpleagent;

import java.util.ArrayList;

import BESA.SystemLevel.transactions.agent.TransactionalState;

public class SimpleState extends TransactionalState{

	private static final long serialVersionUID = 8323700435397104057L;
	
	private Integer value;

	public SimpleState(Integer value) {
		super();
		this.value = value;
	}

	@Override
	public TransactionalState copy() {
		return new SimpleState(value);
	}

	@Override
	public void initState(ArrayList profile) {
		value = ((Integer)profile.get(0)).intValue();
		
	}

	/**
	 * @return the value
	 */
	public Integer getValue() {
		return value;
	}

	/**
	 * @param value the value to set
	 */
	public void setValue(Integer value) {
		this.value = value;
	}
	
	
	
}
